package com.ruoyi.system.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("省市")
public class InitializationVo {

    @ApiModelProperty("省市编码")
    private Long code;

    @ApiModelProperty("省市名称")
    private String name;

    @ApiModelProperty("区域集合")
    private List<InitializationCityVo> children;

    public InitializationVo(Long code, String name) {
        this.code = code;
        this.name = name;
    }
}
